/*所有的渲染转发都放这*/
import { Router } from "../components/router/index";
import Navbar from "../components/navbar";
import Index from "../components/index";
import {Index1} from "../components/index1";
import {getNavbar} from "../api/commapi";

let NavbarMent = [];




export default class Demo1 extends Element {
	this(props){
		this.url = props.url
        console.log(this.url,"第一载入");
        this.props = props;
	}
    render() {
        return ( 
            <div >
                <Navbar ment={this.props.data}  name="自带js学习"   />
                <div id="bodyer">
                <Router url={this.url} onChange={this.onChange} >
                    <Index  path="/demo1/index1/:aa"  />
                    <Index1  path="/demo1/index2/:aa" />
                </Router>
                </div>
               
            </div>
        );
    }
    onChange(props){
		console.log(props.url);
	}
}
